#include <iostream>
#include "Complex.cpp"
int main()
{
    double d;
    std::cout<<"Operatii cu doua numere complexe\n";
    Complex a=Complex();
    Complex b=Complex(1.2,3.7);
    Complex s=a+b;
    std::cout<<"s.real:"<<s.getReal()<<"\n"<<"s.imag:"<<s.getImag()<<"\n";
    a.setReal(17.5);
    std::cout<<"s.real:"<<s.getReal()<<"\n"<<"s.imag:"<<s.getImag()<<"\n";
    Complex dif=a-b;
    std::cout<<"dif.real:"<<dif.getReal()<<"\n"<<"dif.imag:"<<dif.getImag()<<"\n";
    Complex p=a*b;
    std::cout<<"p.real:"<<p.getReal()<<"\n"<<"p.imag:"<<p.getImag()<<"\n";
    Complex i=a/b;
    std::cout<<"i.real:"<<i.getReal()<<"\n"<<"i.imag:"<<i.getImag()<<"\n";
    std::cout<<"Operatii cu un nr complex si un nr real\n";
    d=5.2;
    Complex s2=a+d;
    std::cout<<"s2.real:"<<s2.getReal()<<"\n"<<"s2.imag:"<<s2.getImag()<<"\n";
    Complex dif2=a-d;
    std::cout<<"dif2.real:"<<dif2.getReal()<<"\n"<<"dif2.imag:"<<dif2.getImag()<<"\n";
    Complex p2=a*d;
    std::cout<<"p2.real:"<<p2.getReal()<<"\n"<<"p2.imag:"<<p2.getImag()<<"\n";
    Complex i2=a/d;
    std::cout<<"i2.real:"<<i2.getReal()<<"\n"<<"i2.imag:"<<i2.getImag()<<"\n";

    return 0;
}
